#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
using namespace std;

int main()
{
    string s;
    std::getline(cin, s);
    string ret;
    ret += toupper(s[0]);
    auto pos = s.find(" ");
    while (pos != string::npos)
    {
        ret += toupper(s[pos + 1]);
        pos = s.find(" ", pos + 1);
    }

    cout << ret << endl;
    return 0;
}